package com.zytlifeservice.service.pay;

import com.zytlifeservice.domain.pay.MoblieAndFlowCost;
import com.zytlifeservice.repository.pay.MoblieAndFlowCostRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 话费与流量
 * Created by Administrator on 2017/6/3.
 */
@Service
public class MoblieAndFlowCostService {
    @Autowired
    private MoblieAndFlowCostRepository moblieAndFlowCostRepository;//话费与流量持久对象

    //流量
    public List<MoblieAndFlowCost> findFlowCost() {
        return moblieAndFlowCostRepository.findFlowCost();
    }

    //手机话费
    public List<MoblieAndFlowCost> findMoblieCost() {
        return moblieAndFlowCostRepository.findMoblieCost();
    }


    public List<MoblieAndFlowCost> findAll() {
        return moblieAndFlowCostRepository.findAll();
    }
}
